package com.wxj.shopping_mall.service;

import com.wxj.shopping_mall.entity.WalletDetails;

import java.math.BigDecimal;
import java.util.List;

public interface WalletDetailsService {

    // 新增交易记录
    Integer addTransaction(WalletDetails walletDetails, String balance) throws Exception;

    // 查询用户钱包金额变动明细的接口，按时间降序排列
    List<WalletDetails> queryWalletDetails(Integer walletId);
}
